<template>
  <div id="no-class-schedule">
    <div
      class="wrapper-container"
      style="display: flex; flex-direction: column; width: 100%"
    >
      <div class="search-container">
        <div class="search-container-left">
          <div
            class="search-container-item"
            v-for="(select, index) in selectList"
            :key="index"
          >
            <div v-if="select.type === 'select'" class="box">
              <span v-show="select.name">{{ select.name }}</span>

              <el-select
                v-model="select.val"
                style="width: 90px"
                size="mini"
                placeholder="请选择"
                clearable
              >
                <el-option
                  v-for="item in select.valList"
                  :key="item.id"
                  :label="item.name"
                  :value="item.id"
                >
                </el-option>
              </el-select>
            </div>
            <div class="box" v-if="select.type === 'data'">
              <span class="demonstration" v-show="select.name">{{
                select.name
              }}</span>
              <el-date-picker
                v-model="select.val"
                type="date"
                placeholder="选择日期"
                prefix-icon="aaa"
              >
              </el-date-picker>
            </div>
            <div v-if="select.type === 'MultiSelect'" class="box"></div>
            <div v-if="select.type === 'btn'" class="box">
              <span class="demonstration" v-show="select.name">{{
                select.name
              }}</span>
              <el-input
                v-model="select.val"
                placeholder="请输入内容"
              ></el-input>
            </div>
          </div>
          <div class="search-button" style="margin-left: 20px" @click="queryNoClassTime">
            <img src="../../../../assets/assessment/icon-search.png" alt="" />
            <span>查询</span>
          </div>

          <div style="margin-left: 40px">
            <el-button type="warning" size="mini" plain icon="el-icon-circle-plus-outline" @click="addNoClass">添加</el-button>
          </div>
        </div>
      </div>
    </div>

    <div class="assessment-container">
      <div class="table-container">
        <el-table
          :data="tableData"
          border
          class="table-data"
          row-class-name="row-class"
          cell-class-name="cell-class"
          header-row-class-name="header-row-class"
          header-cell-class-name="header-cell-class"
          style="height: calc(100vh - 320px); overflow-y: auto"
        >
          <el-table-column
            prop="opreate"
            label="操作"
            align="center"
            width="150px"
          >
            <template slot-scope="scope">
              <div
                style="
                  display: flex;
                  padding-left: 10px;
                  justify-content: space-around;
                "
              >
              <el-button type="danger" size="mini" icon="el-icon-delete" plain @click="deletedMessageInfo(scope.row)">删除</el-button>
              </div>
            </template>
          </el-table-column>
          <el-table-column prop="ksrq" label="开始日期" align="center">
          </el-table-column>
          <el-table-column prop="jzrq" label="截止日期" align="center">
          </el-table-column>
          <el-table-column prop="syfw" label="适用范围" align="center">
            <template slot-scope="scope">
              {{scope.row.syfw}}
                  <img
                  style="width: 20px"
                  src="../../../../assets/assessment/icon-plan-record-detail.png"
                  @click="changeValue(scope.row)"
                />
              <!-- <el-select
                v-model="scope.row['syfw']"
                style="width: 180px"
                size="mini"
                placeholder="请选择"
                @change="changeValue"
              >
                <el-option
                  v-for="item in options"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select> -->
            </template>
          </el-table-column>
          <el-table-column
            prop="bpkyy"
            label="不排课原因(课表显示信息)"
            align="center"
          >
          </el-table-column>
        </el-table>
      </div>
    </div>
    <div class="wrapper-container">
      <div class="bottom-block" style="display: block">
        <div class="text">当前共找到{{ total }}条记录,当前显示{{ startPage }}-{{ endPage }}条</div>
      </div>
      <div class="pagination-block">
        <el-pagination
          prev-text="上一页"
          next-text="下一页"
          :page-size="pageSize"
          layout="prev, pager, next, jumper"
          :total="total"
          @current-change="handleCurrentChange"
          :current-page="currentPage"
          >
          </el-pagination>
      </div>
    </div>

    <el-dialog
      title="选择专业班次"
      :visible.sync="showAddMessageDialog"
      width="1300px"
      class="xzzybc"
    >
      <div>
        <el-row>
          <el-col :span="4">
            <el-tree
              default-expand-all
              :data="data"
              :props="defaultProps"
              @node-click="handleNodeClick"
              style="color: #004ca7; margin: 20px 40px;background: #f0f2f5;font-weight: bold;"
            ></el-tree>
          </el-col>
          <el-col :span="20" class="border-left">
            <div class="assessment-container" style="width: 100%;padding: 20px;">
              <div class="table-container" style="width: 100%;">
                <el-table
                  :data="majorTableData"
                  border
                  class="table-data"
                  row-class-name="row-class"
                  cell-class-name="cell-class"
                  header-row-class-name="header-row-class"
                  header-cell-class-name="header-cell-class"
                  style="height: 385px; overflow-y: auto"
                  @selection-change="handleSelectionChange"
                >
                  <el-table-column align="center" type="selection" width="80">
                  </el-table-column>
                  <el-table-column
                    prop="className"
                    label="专业班次"
                    align="center"
                  >
                  </el-table-column>
                  <el-table-column
                    prop="alias"
                    label="别名"
                    align="center"
                  >
                  </el-table-column>
                  <el-table-column
                    prop="studentTeam"
                    label="学员队"
                    width="130"
                    align="center"
                  >
                  </el-table-column>
                  <el-table-column
                    prop="specialtyName"
                    label="专业"
                    align="center"
                  >
                  </el-table-column>
                  <el-table-column prop="year" label="年级" align="center">
                  </el-table-column>
                  <el-table-column
                    prop="campus"
                    label="所在校区"
                    align="center"
                  >
                  </el-table-column>
                  <el-table-column prop="ratedNumber" label="额定人数" align="center">
                  </el-table-column>
                </el-table>
              </div>
            </div>
            <div class="wrapper-container" style="width: calc(100% - 40px);">
              <div class="bottom-block" style="display: block">
                <div class="text">当前共找到{{ total1 }}条记录,当前显示{{ startPage1 }}-{{ endPage1 }}条</div>
              </div>
              <div class="pagination-block">
                <el-pagination
                  prev-text="上一页"
                  next-text="下一页"
                  :page-size="pageSize1"
                  layout="prev, pager, next, jumper"
                  :total="total1"
                  @current-change="handleDialogCurrentChange"
                  :current-page="currentPage1"
                >
                </el-pagination>
              </div>
            </div>
            <div class="btn-caozuo">
              <el-button type="warning" @click="submitChangeClassState" size="mini" plain >确定</el-button>
              <el-button type="danger" @click="cancelChangeClassState" size="mini" plain >取消</el-button>
            </div>
          </el-col>
        </el-row>
      </div>

    </el-dialog>

    <el-dialog title="提示" :visible.sync="deletedMessageDialog" width="500px" class="sckc">
      <div class="class-tip">
        您确定删除<span>{{ selectRow.className }}</span
        >当前不排课信息?
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button size="mini" type="success" plain @click="deletedInfo">确 定</el-button>
        <el-button
          size="mini"
          type="warning"
          plain
          @click="deletedMessageDialog = false"
          style="margin-left: 60px"
        >
          取 消
        </el-button>
      </span>
    </el-dialog>

    <el-dialog title="新增不排课时间" :visible.sync="addNoClassDialog" width="700px" class="xzjy">
      <div style="margin: 40px;">
        <div class="manual-entry-container">
          <div>
            <ul>
              <li>
                <span class="active">开始时间</span>
                <span style="padding-top: 6px;"><el-date-picker
                style="width:100%"
                  v-model="ksrq"
                  type="date"
                  value-format="yyyy-MM-dd"
                  placeholder="选择日期">
                </el-date-picker>
                </span>
              </li>
              <li>
                <span class="active">截止日期</span>
                <span style="padding-top: 6px;">
                  <el-date-picker
                  style="width:100%"
                  v-model="jzrq"
                  type="date"
                  value-format="yyyy-MM-dd"
                  placeholder="选择日期">
                </el-date-picker>
                </span>
              </li>
              <li>
                <span style="display: inline-block;" class="active">适用范围</span>
                <span style="display: inline-block; overflow-y: auto;">
                  {{syfw}}
                  <img
                  style="width: 20px"
                  src="../../../../assets/assessment/icon-plan-record-detail.png"
                  @click="changeAddValue()"
                />
                  <!-- <el-select
                v-model="syfw"
                style="width: 100%"
                size="mini"
                placeholder="请选择"
                @change="changeAddValue()"
              >
                <el-option
                  v-for="item in options"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select> -->
              </span>
              </li>
              <li>
                <span class="active" style="height:120px">不排课原因</span>
                <span style="height:120px"><el-input type="textarea" :rows="3" v-model="bpkyy"></el-input></span>
              </li>
            </ul>
          </div>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button type="success" size="mini" plain @click="submitNoClass">确 定</el-button>
        <el-button
          type="warning"
          size="mini"
          plain
          @click="cancelAddNoClass"
          style="margin-left: 60px"
        >
          取 消
        </el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import ButtonItem from "@/components/ButtonItem.vue";

import {bpksj_query_specialty, jxbgl_data_save, bpksj_query_invalid_time, jxbgl_data_remove, queryCommonPyccId, queryCommonXueqi, jxbgl_data_update, queryDefaultXueQi} from "@/api/trainingManagement/place.js";

export default {
  components: {
    ButtonItem
  },
  data() {
    return {
      total1: 0, //总条数
      pageSize1: 50, //条数
      startPage1: 0, //开始条数
      endPage1: 0, //结束条数
      currentPage1: 1, //当前页数

      total: 0, //总条数
      pageSize: 50, //条数
      startPage: 0, //开始条数
      endPage: 0, //结束条数
      currentPage: 1, //当前页数
      addNoClassDialog: false, //不排课新增弹窗
      majorTableData: [], //专业表格
      // 校区列表
      data: [],
      defaultProps: {
        children: "children",
        label: "name",
      },
      options: [
        {
          value: "",
          label: "专业班次",
        },
      ],
      showAddMessageDialog: false, //调课登记弹窗
      selectList: [
        {
          type: "select",
          name: "学期:",
          val: "",
          valList: [],
        },
      ],
      tableData: [],
      bpkyy: "", //
      jzrq: "",
      ksrq: "",
      syfw: "",
      syfwID:"",
      deletedMessageDialog: false, //删除课程弹窗
      selectRow: {}, //选中行信息
      selectTreeRow: {}, //树节点选中行信息
      selectZybcList: [], //选中专业班次数据列表
      editType: "edit", //编辑类型
    };
  },
  created() {},
  mounted() {
    this.getDefaultXueQi();
  },
  methods: {
    async getDefaultXueQi(){
      queryDefaultXueQi().then(res=>{
        if(res.data.code == 200){
          this.selectList[0].val = res.data.data
        }
      }).then(()=>{
        this.queryCommonXueqi();
      })
    },
    // 获取学期列表
    async queryCommonXueqi() {
      const res = await queryCommonXueqi();
      if (res.data.code == 200) {
        this.selectList[0].valList = res.data.data;
        this.queryNoClassTime();
      }
    },
    handleSelectionChange(val) {
      this.selectZybcList = val;
    },
    // 添加不排课时间
    async submitNoClass() {
      if (this.ksrq == "" || this.ksrq == null) {
        this.$message.warning("请选择开始时间！");
        return;
      }
      if (this.jzrq == "" || this.jzrq == null) {
        this.$message.warning("请选择截止时间！");
        return;
      }
      if (this.syfwID == "" || this.syfwID == null) {
        this.$message.warning("请选择适用范围！");
        return;
      }
        var params = {
          "bpkyy":this.bpkyy,
          "jzrq":this.jzrq,
          "ksrq":this.ksrq,
          "syfw":this.syfwID
        }
        const res = await jxbgl_data_save(params);
        if (res.data.code == 200) {
          this.$message.success("保存成功！");
          this.cancelAddNoClass();
          this.queryNoClassTime();
        }
    },
    cancelAddNoClass() {
      this.addNoClassDialog = false;
      this.bpkyy = "";
      this.jzrq = "";
      this.ksrq = "";
      this.syfw = "";
      this.syfwID = "";
    },
    addNoClass() {
      this.addNoClassDialog = true;
    },
    async queryNoClassTime() {
      var current = this.currentPage;
      var size = this.pageSize;
      var xueqi = this.selectList[0].val;
      const res = await bpksj_query_invalid_time(xueqi, current, size);
      if (res.data.code == 200) {
        this.tableData = res.data.data.records;
        this.total = res.data.data.total;
        var length = this.tableData.length;
        this.calculatePage(
          this.pageSize,
          res.data.data.current, length);
      }
    },
    // 计算开始和结束条数
    calculatePage(pageSize, current, length) {
      if (current == 1) {
        if (length != 0) {
          this.startPage = 1;
          this.endPage = length;
        }
      } else {
        this.startPage = pageSize * (current - 1) + 1;
        this.endPage = parseInt(this.startPage)  + parseInt(length) - 1;
      }
    },
    handleCurrentChange(val) {
      this.currentPage = val;
      this.queryNoClassTime();
    },
    changeAddValue() {
      this.editType = "add";
      this.showAddMessageDialog = true;
      this.queryCommonPycc();
    },
    // 值改变
    changeValue(val) {
      this.selectRow = val;
      this.showAddMessageDialog = true;
      this.queryCommonPycc();
    },
    // 信息查询
    queryInfo() {},
    handleNodeClick(val) {
      this.selectTreeRow = val;
      this.queryZybcList();
    },
    // 查询专业班次数据列表
    async queryZybcList() {
      var trainingLevel = this.selectTreeRow.id || '';
      // var year = this.selectList[0].val;
      var year = "";
      var yearSpecialtyId = "";
      var current = this.currentPage1;
      var size = this.pageSize1;
      const res = await bpksj_query_specialty(trainingLevel, year, yearSpecialtyId, current, size);
      if (res.data.code == 200) {
        this.majorTableData = res.data.data.records;
        this.total1 = res.data.data.total;
        var length = this.majorTableData.length;
        this.calculatePage1(
          this.pageSize1,
          res.data.data.current, length);
      }
    },
    // 计算开始和结束条数
    calculatePage1(pageSize, current, length) {
      if (current == 1) {
        if (length != 0) {
          this.startPage1 = 1;
          this.endPage1 = length;
        }
      } else {
        this.startPage1 = pageSize * (current - 1) + 1;
        this.endPage1 = parseInt(this.startPage1)  + parseInt(length) - 1;
      }
    },
    handleDialogCurrentChange() {
      this.currentPage1 = val;
      this.queryZybcList();
    },
    // 确认删除
    async deletedInfo() {
      var id = this.selectRow.id;
      const res = await jxbgl_data_remove(id);
      if (res.data.code == 200) {
        this.$message.success("删除成功!");
        this.deletedMessageDialog = false;
        this.queryNoClassTime();
      }
    },
    // 课程删除
    deletedMessageInfo(row) {
      this.deletedMessageDialog = true;
      this.selectRow = row;
      console.log(this.selectRow, "selectRow====")
    },
    cancelChangeClassState() {
      this.selectZybcList = [];
      this.showAddMessageDialog = false;
    },
    // 调课记录
    async submitChangeClassState() {
      var ids = "";
      var names = "";
      this.selectZybcList.forEach(item => {
        ids += item.id + ","
        names += item.className
      })
      ids = ids.substring(0, ids.length - 1);
      names = names.substring(0, names.length - 1);
      if (this.editType == "add") {
        this.syfw = names;
        this.syfwID = ids;
        this.showAddMessageDialog = false;
      } else {
        this.selectRow.syfw = ids;
        const res = await jxbgl_data_update(this.selectRow);
        if (res.data.code == 200) {
          this.$message.success("修改成功!");
          this.showAddMessageDialog = false;
          this.queryNoClassTime();
        }
      }
      this.editType = "edit";
    },
    async queryCommonPycc() {
      const res = await queryCommonPyccId();
      if (res.data.code == 200) {
        this.data = res.data.data;
        this.selectTreeRow = this.data[0];
        this.queryZybcList();
      }
    }
  },
  computed: {}, //计算属性
};
</script>
<style lang="less" scoped>
.assessment-container {
  .el-dialog__body {
    height: 251px;
  }
  .el-dialog__footer {
    padding: 10px 20px 45px;
  }
  .el-checkbox__inner:hover {
    border-color: #004ca7;
  }
  .el-checkbox__inner {
    border: 1px solid #004ca7;
    border-radius: 0;
    height: 18px;
    width: 18px;
  }
  .el-checkbox__inner::after {
    height: 10px;
    left: 6px;
  }
  .el-checkbox__input.is-checked .el-checkbox__inner,
  .el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: #004ca7;
    border-color: #004ca7;
  }
  .el-checkbox__input.is-checked + .el-checkbox__label {
    color: #004ca7;
  }
  .el-checkbox.is-bordered.is-checked {
    border-color: #004ca7;
  }
  .el-checkbox__input.is-focus .el-checkbox__inner {
    border-color: #004ca7;
  }
}
</style>
<style lang="less" scoped>
@import "../../../../styles/text.less";
/deep/ .szjky .el-dialog__body {
  height: 432px;
}
.pagination-block {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
</style>
<style lang="less" scoped>
@import "../../../../styles/supervision.less";

/deep/ .table-container {
  .el-table td,
  .el-table th.is-leaf,
  .el-table--border,
  .el-table--group {
    border-color: #c7d7eb;
  }

  .el-table__header tr,
  .el-table__header th {
    padding: 0;
    height: 76px;
    background-color: #edf2f9;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    line-height: 20px;
    color: #004ca7;
  }

  .el-table__body tr,
  .el-table__body td {
    padding: 0;
    height: 86px;
  }

  .wrapper-button {
    display: flex;
    flex-direction: column;
    align-items: center;

    > div {
      margin-bottom: 8px;
    }
  }
  .table-data {
    width: 100%;
    border: 0.8px solid #004ca7;
    /*border-radius: 9px;*/
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #004ca7;
  }
}

.wrapper-container .search-container .search-container-left {
  width: 100%;
  flex-wrap: wrap;
  .search-container-item {
    width: 12%;
    margin-right: 0px;
    .box {
      > span {
        text-align: left;
      }
      display: flex;
      justify-content: space-evenly;
      margin-bottom: 20px;
      align-items: center;
    }
  }
}

/deep/.el-date-editor.el-input {
  width: 110px;
}
/deep/ .el-input--medium {
  width: 110px;
  .el-input__inner {
    height: 28px;
    width: 110px;
    padding: 0px 18px;
  }
}
/deep/ .el-table thead {
  color: #004ca7 !important;
}

.btn {
  margin-top: 271px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 271px;
  .submit {
    width: 84px;
    height: 27px;
    line-height: 8px;
  }
}
.bottom-block {
  // display: flex;
  flex-direction: row;
  justify-content: space-between !important;
  .export-button {
    width: 127px;
    height: 27px;
    background: #fff6ef;
    border: 1px solid #f3b815;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    > img {
      width: 17px;
      height: 17px;
    }
    > span {
      margin-left: 12px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #f3b815;
    }
  }
  .text {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    line-height: 39px;
    color: #004ca7;
  }
}

.search-button {
  width: 77px;
  height: 28px;
  line-height: 28px;
  background: #f1f8fe;
  border: 1px solid #51aef6;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  > span {
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #51aef6;
  }
  > img {
    width: 20px;
    height: 20px;
    margin-right: 4px;
  }
}

.mar-lef-2 {
  margin-left: 20px;
}
.undeLine {
  text-decoration: underline;
  cursor: pointer;
}

.edit-icon {
  font-size: 20px;
  color: #02c86c;
  margin-left: 10px;
  cursor: pointer;
}

.body-manual-container {
  > div:nth-child(1) {
    width: 1200px;
    // height: 785px;
    border: 1px solid rgba(0, 76, 167, 0.8);
    border-radius: 6px;
    margin: 30px auto 0;
    ul {
      list-style: none;
      li {
        border-bottom: 1px solid rgba(0, 76, 167, 0.4);
        height: auto;
        > span {
          box-sizing: border-box;
          display: inline-block;
          font-size: 14px;
          color: rgba(0, 76, 167, 1);
          padding-left: 54px;
          border-right: 1px solid rgba(0, 76, 167, 0.4);
          height: 60px;
          padding-top: 20px;
          vertical-align: middle;
          &:nth-child(n) {
            // width: 357px;
            width: 290px;
          }
          // &:nth-child(2n) {
          // 	width: 444px;
          // }
          &:last-child {
            border-right: none;
          }
          &.active {
            font-size: 16px;
            color: rgba(0, 76, 167, 1);
            font-weight: bold;
            background: rgba(77, 129, 192, 0.1);
            text-align: center;
            padding-left: 0;
          }
          > span {
            color: rgba(255, 56, 25, 1);
          }
          > div {
            width: 100%;
          }
        }
      }
    }
  }
}

.add-icon {
  font-size: 28px;
  color: #f3b815;
  margin-left: 10px;
  cursor: pointer;
}

.date-select {
  height: 100%;
  padding: 0;
  padding-left: 40px;
  overflow-y: auto;
  width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.date-select-show {
  height: 100%;
  width: 500px;
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.class-tip {
  color: #004ca7;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: 40px;
}

.tip-text {
  color: #004ca7;
  margin-left: 5px;
  font-size: 16px;
}

/deep/ .xzjy .el-dialog__body {
  padding: 0 !important;
  .wrapper-container {
    width: 100% !important;
  }
  .wrapper-container .search-container .search-container-left {
    margin-left: 20px;
    flex-wrap: wrap;
    .search-container-item {
      width: 200px;
      margin-right: 10px;
      .box {
        > span {
          text-align: left;
          width: 80px;
        }
        display: flex;
        justify-content: space-evenly;
        margin-bottom: 20px;
        align-items: center;
        .el-input--medium .el-input__inner {
          height: 28px;
        }
      }
    }
  }
}

/deep/ .el-tree-node__expand-icon.expanded {
  color: rgb(0, 76, 167);
}

.xzjy .tree {
  padding: 30px;
  color: rgb(0, 76, 167);
  font-weight: bold;
  font-size: 16px;
}

.btn-caozuo {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 800px;
  margin: 0 auto;
  padding-top: 25px;
}

.manual-entry-container {
  > div:nth-child(1) {
    width: calc(100% - 20px);
    border: 1px solid rgba(0, 76, 167, 0.8);
    border-radius: 6px;
    margin: 10px;
    ul {
      list-style: none;
      li {
        border-bottom: 1px solid rgba(0, 76, 167, 0.4);
        height: auto;
        > span {
          box-sizing: border-box;
          display: inline-block;
          font-size: 14px;
          color: rgba(0, 76, 167, 1);
          padding-left: 54px;
          border-right: 1px solid rgba(0, 76, 167, 0.4);
          height: 60px;
          padding-top: 20px;
          vertical-align: middle;
          &:nth-child(n) {
            width: 250px;
          }
          &:nth-child(2n) {
            width: 270px;
          }
          &:last-child {
            border-right: none;
          }
          &.active {
            font-size: 16px;
            color: rgba(0, 76, 167, 1);
            font-weight: bold;
            background: rgba(77, 129, 192, 0.1);
            text-align: center;
            padding-left: 0;
          }
          > span {
            color: rgba(255, 56, 25, 1);
          }
          &.fill {
            width: 100%;
            text-align: left;
            padding-left: 25px;
          }
          // /deep/ .el-input__inner {
          //   height: 28px;
          // }
        }
      }
      &:nth-child(1) {
        li {
          > span {
            height: 60px;
          }
        }
      }
      &:nth-child(3) {
        li {
          border-bottom: 1px solid rgba(0, 76, 167, 0.4);
          > span {
            width: 400px;
            text-align: center;
            padding-left: 0;
            height: 60px;
            &:nth-child(1) {
              width: 144px;
            }
            &:nth-child(2) {
              width: 180px;
            }
            &:nth-child(3) {
              width: 289px;
            }
            &:nth-child(4) {
              width: 196px;
            }
            &:nth-child(5) {
              width: 197px;
            }
            &:nth-child(6) {
              width: 197px;
            }
            &:nth-child(7) {
              width: 198px;
              padding-top: 8px !important;
              > span {
                display: inline-block;
                width: 121px;
                height: 28px;
                border: 1px solid #5230e9;
                background: rgba(235, 230, 255, 1);
                opacity: 1;
                border-radius: 4px;
                font-size: 14px;
                font-weight: 400;
                color: #5230e9;
                line-height: 18px;
                margin-top: 8px;
                padding: 5px 10px;
                cursor: pointer;
              }
            }
            &:nth-child(8) {
              width: 150px;
            }
            &:nth-child(9) {
              width: 182px;
            }
            &.active {
              border-top: 1px solid rgba(0, 76, 167, 0.4);
              height: 73px;
              padding-top: 25px;
            }
          }
          &:nth-child(2) {
            > div {
              height: 57px;
              padding: 18px 30px;
              > span {
                &:nth-child(1) {
                  font-size: 16px;
                  font-weight: bold;
                  color: #004ca7;
                }
                &:nth-child(2) {
                  font-size: 14px;
                  color: #004ca7;
                }
              }
            }
          }
        }
      }
      .select-week-list {
        display: flex;
        width: 100%;
        align-items: center;
        flex-wrap: wrap;

        .week-item {
          width: 260px;
          height: 60px;
          display: flex;
          color: #004ca7;
          .checked {
            width: 80px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-right: 1px solid rgba(0, 76, 167, 0.4);
            border-bottom: 1px solid rgba(0, 76, 167, 0.4);
          }
          .content {
            width: 180px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-right: 1px solid rgba(0, 76, 167, 0.4);
            border-bottom: 1px solid rgba(0, 76, 167, 0.4);
          }
        }
        .week-item:nth-child(4n) {
          .checked {
            border-right: 0;
          }
          .content {
            border-right: 0;
          }
        }
        .week-item:nth-last-child(1) {
          .checked {
            border-bottom: 0;
          }
          .content {
            border-bottom: 0;
          }
        }
        .week-item:nth-last-child(2) {
          .checked {
            border-bottom: 0;
          }
          .content {
            border-bottom: 0;
          }
        }
        .week-item:nth-last-child(3) {
          .checked {
            border-bottom: 0;
          }
          .content {
            border-bottom: 0;
          }
        }
        .week-item:nth-last-child(4) {
          .checked {
            border-bottom: 0;
          }
          .content {
            border-bottom: 0;
          }
        }
      }
    }
    > div {
      padding: 14px 83px;
      height: 78px;
      > div:nth-child(1) {
        font-size: 16px;
        font-weight: bold;
        color: #004ca7;
        margin-bottom: 10px;
      }
      > div:nth-child(2) {
        > span {
          font-size: 14px;
          color: rgba(0, 76, 167, 1);
          margin-right: 57px;
          > span {
            color: rgba(255, 56, 25, 1);
          }
        }
      }
    }
  }
}

.sckc {
  /deep/ .el-dialog{
    height: 320px;
  }
}
.assessment-container {
  width: calc(100% - 20px);
  .table-container {
     width: 100%;
  }
}

.xzzybc{
  /deep/ .el-dialog{
    height: 720px;
  }
}

.border-left {
border-left: 1px solid #004ca7;
}
</style>

<style lang="less" scoped>
  #no-class-schedule{
    /deep/ .el-button--warning.is-plain{
      background: #FFF6EF;
      border-color: #F3B815;
      color: #F3B815;
      border-radius: 6px;
    }
    /deep/ .el-button--warning.is-plain:focus, .el-button--warning.is-plain:hover{
      color: #F3B815;
      background: #FFF6EF;
      border: 1px solid #F3B815;
      border-radius: 6px;
    }

    /deep/ .el-button--success.is-plain{
      background: #F1FFF8;
      border-color: #02C86C;
      color: #02C86C;
      border-radius: 6px;
    }
    /deep/ .el-button--success.is-plain:hover{
      background: #F1FFF8;
      border: 1px solid #02C86C;
      color: #02C86C;
      border-radius: 6px;
    }

    /deep/ .el-button--primary.is-plain{
      background: #F1F8FE;
      border-color: #51AEF6;
      color: #51AEF6;
      border-radius: 6px;
    }

    /deep/ .el-button--primary.is-plain:hover{
      background: #F1F8FE;
      border: 1px solid #51AEF6;
      color: #51AEF6;
      border-radius: 6px;
    }

    /deep/ .el-button--danger.is-plain{
      background: #FFEFEF;
      border-color: #FF3819;
      color: #FF3819;
      border-radius: 6px;
    }

    /deep/ .el-button--danger.is-plain:hover{
      background: #FFEFEF;
      border: 1px solid #FF3819;
      color: #FF3819;
      border-radius: 6px;
    }
  }
</style>
